#include <CBox.h>
#include <utils.h>

template <class T> bool CBox<T>::inside (const CBox<T>& box) const {

	if (inbox<T>(left, bottom, box)) return true;
	else if (inbox<T>(right, top, box)) return true;
	else if (inbox<T>(left, top, box)) return true; 
	else if (inbox<T>(right, bottom, box)) return true;
	else return false;

}
